var $ = jquery = layui.jquery;
var layer = layui.layer;


$("#addmanageBtn").click(function(){
   layer.open({
        type: 1,
        title:"添加管理员",
        content: $('#controladdmanage'),
        area:["500px","430px"],
        btn: ['确定', '取消'],
        yes: function(index, layero){
           alert("点击了确认");
          layer.close(index); 
        }
   });
})




$("body").on("click","#use_manageTable .del",function(){
    layer.confirm('确定 <span class="red">取消</span> 该用户管理员权限吗?', {icon: 3, title:'提示'}, function(index){
        alert("点击了确认");
          layer.close(index);
        });
})


$("body").on("click","#use_manageTable .edit",function(){
    layer.open({
        type: 1,
        title:"修改权限",
        content: $('#controlEditUse'),
        area:["500px","400px"],
        btn: ['确定', '取消'],
        yes: function(index, layero){
           alert("点击了确认");
          layer.close(index); 
        }
   });
})